package com.aistar.service.redis;


import com.aistar.pojo.TravPraise;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TravPraiseService {
    int save(TravPraise travPraise);
    int saveAll(List<TravPraise> list);
    Page<TravPraise> getLikedListByLikedUserId(String likedUserId, Pageable pageable);
    Page<TravPraise> getLikedListByLikedPostId(String likedPostId, Pageable pageable);
    TravPraise getByLikedUserIdAndLikedPostId(String likedUserId, String likedPostId);
    void transLikedFromRedis2DB();
    void transLikedCountFromRedis2DB();
}
